home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11810 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  915 b 

  1. Path: inforamp.net!ts14-03
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help with SPAWN Commands
  5. Date: Sat, 16 Mar 96 09:07:53 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4ie0dr$pc1@sam.inforamp.net>
  8. References: <4i5cm6$bmr@news.nstn.ca>
  9. NNTP-Posting-Host: ts14-03.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4i5cm6$bmr@news.nstn.ca>, dave@fox.nstn.ns.ca (Dave Nugent) wrote:
  13. >Can someone please give me a simple example of how to
  14. >use a spawn command in TC using 1 executable & 1 
  15. >argument i.e. I want to do something like..
  16. >SPAWN VOCPLAY.EXE VOCFILE.VOC
  17. >I will always know the parameters I am passing.  I can get a single 
  18. >command to send but when I try to use any parameters I'm not
  19. >having any luck..
  20. >Thks.
  21.  
  22. Try this.
  23.    result = spawnl(P_WAIT, "VOCPLAY.EXE", "VOCPLAY.EXE", "VOCFILE.VOC", NULL);
  24.  
  25. I hope it helps.
  26.  
  27. Agrivar
  28.